.flex(@align){
    display: flex;
    display: -webkit-flex;
    align-items: @align;
    -webkit-align-items: @align;
}
.width(@width, @height){
    width: @width;
    height: @height;
}
.backgroundImg(@imgUrl){
    background: url(@imgUrl) no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
.hide{
    display: none;
}
.none{
    opacity: 0;
}

.search-wrapper{
    width: 654px;
    height: 44px;
    .width(654px, 44px);
    .flex(center);
    position: absolute;
    top: 264px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    background: #FFFFFF;
    border: 2px solid #2857FF;
    border-radius: 8px;
    overflow: hidden;
    .input-wrapper{
        .width(83.5%, 100%);
        position: relative;
        input{
            .width(100%, 100%);
            padding-left:10px;
        }
        .voice{
            position: absolute;
            .width(13px, 19px);
            right: 57px;
            top: 11px;
            z-index: 3;
            .backgroundImg('../../../assets/images/search/voice.png');
            cursor: pointer;
            &:hover{
                .backgroundImg('../../../assets/images/search/voice-h.png');
            }
        }
        .camera{
            position: absolute;
            .width(19px, 16px);
            right: 19px;
            top: 12px;
            z-index: 3;
            .backgroundImg('../../../assets/images/search/camera.png');
            cursor: pointer;
            &:hover{
                .backgroundImg('../../../assets/images/search/camera-h.png');
            }
        }
    }
    .search-btn{
        .width(16.5%, 100%);
        line-height: 40px;
        text-align: center;
        font-size: 20px;
        font-weight: 400;
        color: #FFFFFF;
        background-color: #2857FF;
        cursor: pointer;
        &:hover{
            background: linear-gradient(90deg, #2857FF, #28A1FF);
        }
    }
}

.mask{
    .width(100%, 100vh);
    position:absolute;
    top:0;
    left:0;
    z-index:1;
    background-color:rgba(0, 0, 0, .3);
}

.record-icon{
    position: absolute;
    .width(200px, 50px);
    top: 50%;
    left: 50%;
    z-index: 2;
    .flex(center);
    transform: translate(-50%, -50%);
    span{
        margin-left: 5px;
    }
}

.record-close{
    position: absolute;
    top: 55%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    cursor: pointer;
}
